package com.dstz.demo.rest.controller;

import com.alibaba.fastjson.JSONArray;
import com.dstz.demo.core.model.BuildMaterials;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonNode;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class test {
    public static void main(String[] args) {
//        String map = "{\"buildMaterials\":[{\"build_id\":\"1\",\"veSubClasses\":[{\"build_id\":\"1\",\"subclass_id\":\"19\",\"delete\":false,\"version\":0},{\"build_id\":\"1\",\"subclass_id\":\"20\",\"delete\":false,\"version\":0},{\"build_id\":\"1\",\"subclass_id\":\"21\",\"delete\":false,\"version\":0}],\"build_title\":\"基材/辅料/清洁用品/扫帚\",\"father_id\":\"01.01.01.01\",\"delete\":false,\"version\":0,\"build_name\":\"扫帚\"},{\"build_id\":\"12\",\"veSubClasses\":[{\"build_id\":\"12\",\"delete\":false,\"version\":0}],\"build_title\":\"\",\"father_id\":\"\",\"delete\":false,\"version\":0,\"build_name\":\"请选择\"},{\"build_id\":\"13\",\"veSubClasses\":[{\"build_id\":\"13\",\"delete\":false,\"version\":0}],\"build_title\":\"\",\"father_id\":\"\",\"delete\":false,\"version\":0,\"build_name\":\"请选择\"},{\"build_id\":\"14\",\"veSubClasses\":[{\"build_id\":\"14\",\"delete\":false,\"version\":0}],\"build_title\":\"\",\"father_id\":\"\",\"delete\":false,\"version\":0,\"build_name\":\"请选择\"}]}\n";
//        List<String> list = new ArrayList<String>();
//        list.add(map);
//        JSONArray array = new JSONArray();
//        array.add(list);
//        for (int i=0;i<array.size();i++){
//            System.out.println(array.get(i));
//        }
//        List<String> lis = Arrays.asList(map);

    }
}
